<?php
	// 去除notice提示
	error_reporting(E_ALL || ~E_NOTICE);
	//校验是否是gitee的调用
	$password = $_SERVER["HTTP_X_GITEE_TOKEN"];
	if(!$password||"OLjUe6MpoktfEJGY" != $password){
			header('HTTP/1.1 400 Bad Request');
			die('HTTP HEADER or POST is missing.');
	}
	//更新代码
	$excuteInfo = shell_exec("cd /home/nginxWork/dxsht && git pull");
	//编译代码(可选) java
	echo "success</br>$excuteInfo";
?>
